//package com.jdh.fileUpload.config;
//
//import com.google.common.collect.Multimap;
//import io.minio.CreateMultipartUploadResponse;
//import io.minio.ListPartsResponse;
//import io.minio.ObjectWriteResponse;
//import io.minio.messages.Part;
//import org.springframework.stereotype.Component;
//
///**
// * @ClassName: MinioClient
// * @Author: jdh
// * @CreateTime: 2022-03-14
// * @Description:
// */
//@Component
//public class MyMinioClient extends io.minio.MinioClient {
//
//    protected MyMinioClient(io.minio.MinioClient client) {
//        super(client);
//    }
//
//    /**
//     * 下面是minioClient自带的分片上传相关接口，但是目前未实现
//     */
//    //创建分块上传任务
//    public String initMultiPartUpload(String bucket, String region, String object, Multimap<String, String> headers, Multimap<String, String> extraQueryParams) throws Exception {
//        CreateMultipartUploadResponse response = this.createMultipartUpload(bucket, region, object, headers, extraQueryParams);
//
//        return response.result().uploadId();
//    }
//
//    //合并指定上传任务的分块文件
//    public ObjectWriteResponse mergeMultipartUpload(String bucketName, String region, String objectName, String uploadId, Part[] parts, Multimap<String, String> extraHeaders, Multimap<String, String> extraQueryParams) throws Exception {
//
//        return this.completeMultipartUpload(bucketName, region, objectName, uploadId, parts, extraHeaders, extraQueryParams);
//    }
//
//    //获取指定上传任务内的已上传的分块信息
//    public ListPartsResponse listMultipart(String bucketName, String region, String objectName, Integer maxParts, Integer partNumberMarker, String uploadId, Multimap<String, String> extraHeaders, Multimap<String, String> extraQueryParams) throws Exception {
//        return this.listParts(bucketName, region, objectName, maxParts, partNumberMarker, uploadId, extraHeaders, extraQueryParams);
//    }
//}
